{block name='breadcrumb'}
<ul class="breadcrumb">
	<li><a href="{$BASE_PATH}financeiro/lancamento/">Lançamentos</a></li>
	<li>Crédito</li>
</ul>
{/block}

<div id='divGrid'>
<table id='dataTableTarefa' class='tableList'>
	<thead>
		<tr>
			<th><a href='#'>N°</a></th>
			<th><a href='#'>Nome</a></th>
			<th><a href='#'>Valor</a></th>
			<th><a href='#'>Vencimento</a></th>
			<th><a href='#'>Status</a></th>
			<th><a href='#'>Categoria</a></th>
			<th><a href='#'>Agente</a></th>
		</tr>
	</thead>
	<tbody>
		{foreach from=$paginator->query->getResult() key=k item=i}
		<tr>
			<td>{$i->getId()}</td>
			<td class='txtLeft'>{$i->getNome()}</td>
			<td class='txtLeft'>{$i->getValor()}</td>
			<td class='txtLeft'>{$Action->getClass('\Helper\Action\Financeiro\Lancamento')->getVencimento($i)}</td>
			<td class='txtLeft'>{$i->getStatus()}</td>
			<td class='txtLeft'>{$i->getCategoria()->getNome()}</td>
			<td class='txtLeft'>{$i->getAgente()}</td>
		</tr>
		{foreachelse}
			<tr>
				<td colspan="6">
					Nenhum registro encontrado
				</td>
			</tr>
		{/foreach}
	</tbody>
</table>
{block name='paginator'}
	{$paginator->pagination()}
{/block}
</div>

{block name='javascript'}
	<script type="text/javascript">
		$(document).ready(function() {
			initPagination();
			$('.overTitle').tooltip();
			$('.overlay').popover();
		})
	</script>
{/block}